<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>我的问答 - 会员中心 -  {:C('YTATA_SITE_NAME')}</title>
<link href="__ROOT__/{:C('YTATA_TPL_DIR')}/public/css/user.css" rel="stylesheet" type="text/css">
<include file="public:header" />
<div class="usermain">
  <div class="mleft">
<include file="left_nav" />
  </div>
  
  <div class="mright">
  
    
	
    <div class="mbox">
	  	<div class="utopt">
			  <div class="tit">我的问答</div>
<a class="snav <if condition="$mods eq '1'">select</if>" href="{:RU('user/question',array('mods'=>1))}">我的提问</a>
<a class="snav <if condition="$mods eq '2'">select</if>" href="{:RU('user/question',array('mods'=>2))}">我的回答</a>
 

			<div class="clear"></div>
	  </div>
	  
	  
	  <!--问题列表 -->
	  <eq name="mods" value="1">
	  
	    <div class="myquestion">
		  <div class="tnav link_gray3">
		  <a href="{:RU('user/question',array('type'=>''))}" <eq name="type" value="">class="select"</eq>>全部提问</a>
		  <span>|</span>
		  <a href="{:RU('user/question',array('type'=>4))}" <eq name="type" value="4">class="select"</eq>>待解决</a>
		  <span>|</span>
		  <a href="{:RU('user/question',array('type'=>3))}" <eq name="type" value="3">class="select"</eq>>已解决</a></div>
		  
		  
		  
		  
		  <!-- 读取问题 -->
<ytata:question listname="question" type="$_GET['type']" uid="$uid"  page="1" num="10"/> 
<volist name="question.list" id="li">
			<div class="qlist">
			<if condition="$li.issolve eq '1' ">
			  <div class="td1 type2"><span>{$li.answercount}</span><br>解决</div>
			  <else/>
			  		<if condition="$li.answercount eq 0 ">
					<div class="td1 type0"><span>{$li.answercount}</span><br>回答</div>
					<elseif condition="$li.answercount gt 0"/>
					<div class="td1 type1"><span>{$li.answercount}</span><br>回答</div>
					</if>
			  </if>
					<div class="td2"><span>{$li.click}</span><br>浏览</div>
					<div class="td3">
							<h4 class="link_gray3"><if condition="$li.reward gt 0 "><span class="reward">{$li.reward}</span></if><a href="{$li.url}" target="_blank">{$li.title}</a></h4>
							
							 <div class="author link_gray3">
							 <if condition="$li.answeruid gt 0 ">
							 <a href="{$li.replyuser.user_url}"  target="_blank">{$li.replyuser.username}</a> <span> 回复于 {$li.answertimestr}</span>
							 <else />
							  <a href="{$li.adduser.user_url}" target="_blank">{$li.adduser.username}</a><span> 发布于 {$li.addtimestr}</span>
							 </if>
							 </div>
							 	<volist name="li.tags" id="tagsli">
							 	<a class="tag" href="{$tagsli.tagurl}" target="_blank">{$tagsli.tag}</a>
					 			</volist>
							<a class="del" href="{:RU('user/question_del',array('id'=>$li['id']))}" onClick="return confirm('你确定要删除吗？')">删除</a>
				   </div>
					<div class="clear"></div>
			</div>
 </volist>
<empty name="question.list">
<div class="infoempty"> 暂时木有内容呀～～</div>
</empty>
 <!-- -->
 <!-- -->
 <div class="uupage">{$question.page}</div>
 
 </eq>
  <!-- 问题列表结束-->
  
  
	<eq name="mods" value="2"><!-- 回答列表-->
	 <div class="myquestion">
		  <div class="tnav link_gray3">
		  <a href="{:RU('user/question',array('mods'=>2,'optimal'=>''))}" <eq name="optimal" value="">class="select"</eq>>全部回答</a>
		  <span>|</span>
		  <a href="{:RU('user/question',array('mods'=>2,'optimal'=>1))}" <eq name="optimal" value="1">class="select"</eq>>已采纳</a>
		  <span>|</span>
		  <a href="{:RU('user/question',array('mods'=>2,'optimal'=>0))}" <eq name="optimal" value="0">class="select"</eq>>待采纳</a></div>
	
	 <ytata:answer listname="a" uid="$uid"  optimal="$_GET['optimal']" page="1" num="10"/> 
	 <volist name="a.list" id="li">
	    <div class="alist link_gray6">
		<div class="link_blue">
		<notempty name="li.question.issolve"><span class="issolve">已解决</span></notempty>
		<notempty name="li.question.title">
		<a href="{$li.question.url}" target="_blank">{$li.question.title}</a>
		<else />
		<a href="javascript:void(0)" target="_blank" style="text-decoration:line-through">问题已经被删除</a>
		</notempty>
		<notempty name="li.question.reward"><span class="reward">{$li.question.reward}</span></notempty>
		</div>
		<div class="text substring">{$li.content}</div>
		 <a href="{$li.user.user_url}" target="_blank">{$li.user.nickname}</a><span> 回答于 {$li.addtime_str}</span> 
		<eq name="li.optimal" value="1"><span class="optimal">最佳答案</span></eq>
		</div>
	  </volist>
	  <empty name="a.list">
<div class="infoempty"> 暂时木有内容呀～～</div>
</empty>
	<!-- -->
 <div class="uupage">{$a.page}</div>
	</eq>
	
	<!-- 回答列表结束-->
  
	
		  
		</div>
	    
					
		
		
    </div>
	
	 
	
	
  </div>
   <div class="clear"></div>
</div>
<include file="public:footer" />
 
</body>
</html>
